import { Inject, Injectable } from '@nestjs/common';
import { ClientProxy } from '@nestjs/microservices';

@Injectable()
export class RmqService {
  // 连接client
  client: ClientProxy;
  constructor(
    @Inject('USE_FACTORY_CLIENT') private clientProxy: ClientProxy,
  ) {
    this.client = clientProxy;
  }
}
